Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERC1155 sale contract globalSaleDetails and tokenSaleDetails as view in interface #20

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

david-littlefarmer
Copy link
Contributor

I got issue, when these 2 methods globalSaleDetails() and tokenSaleDetails() wasn't generated in clients as read only methods.

I checked the code for ERC721 and noticed one difference between these methods and saleDetails() for ERC721 so i made this little change and it generated me expected client with read only methods.

If the approach is wrong, then close this PR please.

https://github.com/0xsequence/contracts-library/blob/master/src/tokens/ERC721/utility/sale/IERC721Sale.sol#L55

@ScreamingHawk
Copy link
Contributor

Nice catch! Merging.
Side note: because the ERC1155Sale implementation contract adds the view modifier to these functions we don't need to redeploy our contracts.

@ScreamingHawk ScreamingHawk merged commit 20aa5d3 into master Sep 16, 2024
3 checks passed
@ScreamingHawk ScreamingHawk deleted the erc1155_sale_view_details branch September 16, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants